<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml">
		<head>
			<!-- template designed by Marco Von Ballmoos -->
			<title>Docs For Class Bel_Model_Abstract</title>
			<link rel="stylesheet" href="../media/stylesheet.css" />
			<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/>
		</head>
		<body>
			<div class="page-body">			
<h2 class="class-name">Class Bel_Model_Abstract</h2>

<a name="sec-description"></a>
<div class="info-box">
	<div class="info-box-title">Description</div>
	<div class="nav-bar">
					<span class="disabled">Description</span> |
							<a href="#sec-descendents">Descendents</a>
			|											<a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
						|											<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
						
					</div>
	<div class="info-box-body">
        		<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Base model class. Provides functionality to get list of records, build pagings, delete &amp; edit record.</p>
<p class="description"><p>Uses Zend_Db_Table_Adstract class as parent.</p></p>
	<ul class="tags">
				<li><span class="field">author:</span> Konstantin Shamko &lt;<a href="mailto:konstantin.shamko@gmail.com">konstantin.shamko@gmail.com</a>&gt;</li>
				<li><span class="field">version:</span> 0.0.1</li>
				<li><span class="field">copyright:</span> Copyright (c) 2009 Konstantin Shamko</li>
				<li><span class="field">abstract:</span> </li>
				<li><span class="field">license:</span> New</li>
			</ul>
		<p class="notes">
			Located in <a class="field" href="_Libs---Bel---Model---Abstract.php.html">/Libs/Bel/Model/Abstract.php</a> (line <span class="field">14</span>)
		</p>
		
				
		<pre>Zend_Db_Table_Abstract
   |
   --Bel_Model_Abstract</pre>
	
			</div>
</div>

	<a name="sec-descendents"></a>
	<div class="info-box">
		<div class="info-box-title">Direct descendents</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
			<span class="disabled">Descendents</span>
			|												<a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
								|															<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
							
								</div>
		<div class="info-box-body">
			<table cellpadding="2" cellspacing="0" class="class-table">
				<tr>
					<th class="class-table-header">Class</th>
					<th class="class-table-header">Description</th>
				</tr>
								<tr>
					<td style="padding-right: 2em"><a href="../Usermanagement/Model/Models_Usermanagement_Permissions.html">Models_Usermanagement_Permissions</a></td>
					<td>
											Permissions management model
										</td>
				</tr>
								<tr>
					<td style="padding-right: 2em"><a href="../Usermanagement/Model/Models_Usermanagement_Users.html">Models_Usermanagement_Users</a></td>
					<td>
											Users Model. Provides an API for users management
										</td>
				</tr>
								<tr>
					<td style="padding-right: 2em"><a href="../Usermanagement/Model/Models_Usermanagement_Groups.html">Models_Usermanagement_Groups</a></td>
					<td>
											Groups Model. Provides an API for groups management
										</td>
				</tr>
								<tr>
					<td style="padding-right: 2em"><a href="../Content/Model/Models_Content_Pages.html">Models_Content_Pages</a></td>
					<td>
											Pages model
										</td>
				</tr>
								<tr>
					<td style="padding-right: 2em"><a href="../Content/Model/Models_Content_Menus.html">Models_Content_Menus</a></td>
					<td>
											Menus model
										</td>
				</tr>
								<tr>
					<td style="padding-right: 2em"><a href="../Content/Model/Models_Content_Page2menu.html">Models_Content_Page2menu</a></td>
					<td>
											Describes relations between pages and menus through link table
										</td>
				</tr>
								<tr>
					<td style="padding-right: 2em"><a href="../Bel/Bel_Model_Tree.html">Bel_Model_Tree</a></td>
					<td>
											Tree structure model.
										</td>
				</tr>
							</table>
		</div>
	</div>


	<a name="sec-var-summary"></a>
	<div class="info-box">
		<div class="info-box-title">Variable Summary</span></div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
							<a href="#sec-descendents">Descendents</a> |
						<span class="disabled">Vars</span> (<a href="#sec-vars">details</a>)
							| 
									<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
							
								</div>
		<div class="info-box-body">
			<div class="var-summary">
																																								<div class="var-title">
					<span class="var-type">Zend_Db_Adapter_Abstract</span>
					<a href="#$_db" title="details" class="var-name">$_db</a>
				</div>
																<div class="var-title">
					<span class="var-type">int</span>
					<a href="#$_items_on_page" title="details" class="var-name">$_items_on_page</a>
				</div>
																<div class="var-title">
					<span class="var-type">string</span>
					<a href="#$_name" title="details" class="var-name">$_name</a>
				</div>
											</div>
		</div>
	</div>

	<a name="sec-method-summary"></a>
	<div class="info-box">
		<div class="info-box-title">Method Summary</span></div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
							<a href="#sec-descendents">Descendents</a> |
																		<a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
				 
				|
						<span class="disabled">Methods</span> (<a href="#sec-methods">details</a>)
		</div>
		<div class="info-box-body">			
			<div class="method-summary">
																																																																																																																				
												<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#__construct" title="details" class="method-name">__construct</a>
											([<span class="var-type"></span>&nbsp;<span class="var-name">$array</span> = <span class="var-default">array()</span>], <span class="var-type">mixed</span>&nbsp;<span class="var-name">$config</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">int</span>
										<a href="#addEntry" title="details" class="method-name">addEntry</a>
											(<span class="var-type">array</span>&nbsp;<span class="var-name">$data_to_add</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">int</span>
										<a href="#bulkDeleteById" title="details" class="method-name">bulkDeleteById</a>
											(<span class="var-type">array</span>&nbsp;<span class="var-name">$ids</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">int</span>
										<a href="#deleteEntryById" title="details" class="method-name">deleteEntryById</a>
											(<span class="var-type">int</span>&nbsp;<span class="var-name">$id</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">array</span>
										<a href="#getAll" title="details" class="method-name">getAll</a>
											([<span class="var-type">string</span>&nbsp;<span class="var-name">$where</span> = <span class="var-default">NULL</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$order</span> = <span class="var-default">NULL</span>], [<span class="var-type">int</span>&nbsp;<span class="var-name">$page</span> = <span class="var-default">1</span>])
									</div>
																<div class="method-definition">
											<span class="method-result">Zend_Db_Table_Row</span>
										<a href="#getEntryById" title="details" class="method-name">getEntryById</a>
											(<span class="var-type">integer</span>&nbsp;<span class="var-name">$id</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">string</span>
										<a href="#getIdCol" title="details" class="method-name">getIdCol</a>
										()
									</div>
																<div class="method-definition">
											<span class="method-result">int</span>
										<a href="#getItemsOnPage" title="details" class="method-name">getItemsOnPage</a>
										()
									</div>
																<div class="method-definition">
											<span class="method-result">array</span>
										<a href="#getPaging" title="details" class="method-name">getPaging</a>
											([<span class="var-type">string</span>&nbsp;<span class="var-name">$url</span> = <span class="var-default">NULL</span>])
									</div>
																<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#setItemsOnPage" title="details" class="method-name">setItemsOnPage</a>
											(<span class="var-type">int</span>&nbsp;<span class="var-name">$items_on_page</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#setSelectMethod" title="details" class="method-name">setSelectMethod</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$methodName</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">int</span>
										<a href="#updateEntry" title="details" class="method-name">updateEntry</a>
											(<span class="var-type">array</span>&nbsp;<span class="var-name">$request</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">array</span>
										<a href="#_prepareRequest" title="details" class="method-name">_prepareRequest</a>
											(<span class="var-type">array</span>&nbsp;<span class="var-name">$request</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">Zend_Db_Select</span>
										<a href="#_selectQuery" title="details" class="method-name">_selectQuery</a>
										()
									</div>
								</div>
		</div>
	</div>		

	<a name="sec-vars"></a>
	<div class="info-box">
		<div class="info-box-title">Variables</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
							<a href="#sec-descendents">Descendents</a> |
										<a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>)
						
			
										| 
									<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
							
					</div>
		<div class="info-box-body">
			<a name="var$_db" id="$_db"><!-- --></A>
<div class="evenrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">Zend_Db_Adapter_Abstract</span>
			<span class="var-name">$_db</span>
						(line <span class="line-number">20</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">DB adapter object</p>
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	
		
		

</div>
<a name="var$_items_on_page" id="$_items_on_page"><!-- --></A>
<div class="oddrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">int</span>
			<span class="var-name">$_items_on_page</span>
			 = <span class="var-default"> 0</span>			(line <span class="line-number">49</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Quantity of items to show on page. If 0 then all  records will be return</p>
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	
		
		

</div>
<a name="var$_name" id="$_name"><!-- --></A>
<div class="evenrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">string</span>
			<span class="var-name">$_name</span>
						(line <span class="line-number">34</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Table name</p>
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	
		
		

</div>
						
		</div>
	</div>
	
	<a name="sec-methods"></a>
	<div class="info-box">
		<div class="info-box-title">Methods</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
							<a href="#sec-descendents">Descendents</a> |
															<a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
																	<a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>)
						
		</div>
		<div class="info-box-body">
			<A NAME='method_detail'></A>

<a name="method__construct" id="__construct"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">Constructor __construct</span> (line <span class="line-number">76</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Constructor.</p>
<p class="description"><p>Supported params for $config are: <ul><li>db              = user-supplied instance of database connector,
                     or key name of registry instance.</li><li>name            = table name.</li><li>primary         = string or array of primary key(s).</li><li>rowClass        = row class name.</li><li>rowsetClass     = rowset class name.</li><li>referenceMap    = array structure to declare relationship
                     to parent tables.</li><li>dependentTables = array of child tables.</li><li>metadataCache   = cache for information from adapter describeTable().</li></ul></p></p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			__construct
		</span>
					([<span class="var-type"></span>&nbsp;<span class="var-name">$array</span> = <span class="var-default">array()</span>], <span class="var-type">mixed</span>&nbsp;<span class="var-name">$config</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$config</span><span class="var-description">: Array of user-specified config options, or just the Db Adapter.</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">$array</span>			</li>
				</ul>
		
			
			<hr class="separator" />
		<div class="notes">Redefined in descendants as:</div>
		<ul class="redefinitions">
					<li>
				<a href="../Usermanagement/Model/Models_Usermanagement_Permissions.html#method__construct">Models_Usermanagement_Permissions::__construct()</a>
								: Constructor. Sets table name &amp; primary key
							</li>
					<li>
				<a href="../Usermanagement/Model/Models_Usermanagement_Users.html#method__construct">Models_Usermanagement_Users::__construct()</a>
								: Constructor. Sets table name &amp; primary key
							</li>
					<li>
				<a href="../Usermanagement/Model/Models_Usermanagement_Groups.html#method__construct">Models_Usermanagement_Groups::__construct()</a>
								: Constructor. Sets table name &amp; primary key
							</li>
					<li>
				<a href="../Content/Model/Models_Content_Pages.html#method__construct">Models_Content_Pages::__construct()</a>
								: Constructor to set name of a table with pages in a database and table's primary key.
							</li>
					<li>
				<a href="../Content/Model/Models_Content_Menus.html#method__construct">Models_Content_Menus::__construct()</a>
								: Constructor to set name of a table with menus in a database and table's primary key.
							</li>
					<li>
				<a href="../Content/Model/Models_Content_Page2menu.html#method__construct">Models_Content_Page2menu::__construct()</a>
								: Constructor to set name of a table that links pages &amp; menus tables in a database.
							</li>
					<li>
				<a href="../Bel/Bel_Model_Tree.html#method__construct">Bel_Model_Tree::__construct()</a>
								: Constructor
							</li>
					<li>
				<a href="../Usermanagement/Model/Models_Usermanagement_Modules.html#method__construct">Models_Usermanagement_Modules::__construct()</a>
								: Constructor to set table with modules/controllers/actions
							</li>
				</ul>
	</div>
<a name="methodaddEntry" id="addEntry"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">addEntry</span> (line <span class="line-number">188</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Adds entry into a db</p>
	<ul class="tags">
				<li><span class="field">return:</span> - last inserted entry primary key</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">int</span>
		<span class="method-name">
			addEntry
		</span>
					(<span class="var-type">array</span>&nbsp;<span class="var-name">$data_to_add</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">array</span>
				<span class="var-name">$data_to_add</span><span class="var-description">: - associative array (key - name of a table field, value - field value)</span>			</li>
				</ul>
		
			
	</div>
<a name="methodbulkDeleteById" id="bulkDeleteById"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">bulkDeleteById</span> (line <span class="line-number">209</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Deletes entries by array of primary keys values</p>
	<ul class="tags">
				<li><span class="field">return:</span> - number of deleted rows</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">int</span>
		<span class="method-name">
			bulkDeleteById
		</span>
					(<span class="var-type">array</span>&nbsp;<span class="var-name">$ids</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">array</span>
				<span class="var-name">$ids</span><span class="var-description">: - array of ints</span>			</li>
				</ul>
		
			
	</div>
<a name="methoddeleteEntryById" id="deleteEntryById"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">deleteEntryById</span> (line <span class="line-number">199</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Deletes entry by primary key value</p>
	<ul class="tags">
				<li><span class="field">return:</span> - the number of rows deleted.</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">int</span>
		<span class="method-name">
			deleteEntryById
		</span>
					(<span class="var-type">int</span>&nbsp;<span class="var-name">$id</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">int</span>
				<span class="var-name">$id</span><span class="var-description">: - primary key value</span>			</li>
				</ul>
		
			
	</div>
<a name="methodgetAll" id="getAll"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">getAll</span> (line <span class="line-number">90</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Method to get data from a table.</p>
	<ul class="tags">
				<li><span class="field">return:</span> - array with stdObjects</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">array</span>
		<span class="method-name">
			getAll
		</span>
					([<span class="var-type">string</span>&nbsp;<span class="var-name">$where</span> = <span class="var-default">NULL</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$order</span> = <span class="var-default">NULL</span>], [<span class="var-type">int</span>&nbsp;<span class="var-name">$page</span> = <span class="var-default">1</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$where</span><span class="var-description">: - where clause</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$order</span><span class="var-description">: - order clause</span>			</li>
					<li>
				<span class="var-type">int</span>
				<span class="var-name">$page</span><span class="var-description">: - page number to select</span>			</li>
				</ul>
		
			
	</div>
<a name="methodgetEntryById" id="getEntryById"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">getEntryById</span> (line <span class="line-number">128</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Returns entry by primary key value</p>
	<ul class="tags">
				<li><span class="field">return:</span> | false</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">Zend_Db_Table_Row</span>
		<span class="method-name">
			getEntryById
		</span>
					(<span class="var-type">integer</span>&nbsp;<span class="var-name">$id</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$id</span><span class="var-description">: - primary key value</span>			</li>
				</ul>
		
			
	</div>
<a name="methodgetIdCol" id="getIdCol"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">getIdCol</span> (line <span class="line-number">174</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Return table's primary key field name</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">string</span>
		<span class="method-name">
			getIdCol
		</span>
				()
			</div>
	
		
			
			<hr class="separator" />
		<div class="notes">Redefined in descendants as:</div>
		<ul class="redefinitions">
					<li>
				<a href="../Bel/Bel_Model_Tree.html#methodgetIdCol">Bel_Model_Tree::getIdCol()</a>
								: Return primary key field name
							</li>
				</ul>
	</div>
<a name="methodgetItemsOnPage" id="getItemsOnPage"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">getItemsOnPage</span> (line <span class="line-number">165</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Get quantity of items to return after getAll method</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">int</span>
		<span class="method-name">
			getItemsOnPage
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodgetPaging" id="getPaging"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">getPaging</span> (line <span class="line-number">142</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Returns paging object</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">array</span>
		<span class="method-name">
			getPaging
		</span>
					([<span class="var-type">string</span>&nbsp;<span class="var-name">$url</span> = <span class="var-default">NULL</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$url</span><span class="var-description">: - url to use in paging control</span>			</li>
				</ul>
		
			
	</div>
<a name="methodsetItemsOnPage" id="setItemsOnPage"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">setItemsOnPage</span> (line <span class="line-number">156</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Set quantity of items to return after getAll method</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			setItemsOnPage
		</span>
					(<span class="var-type">int</span>&nbsp;<span class="var-name">$items_on_page</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">int</span>
				<span class="var-name">$items_on_page</span>			</li>
				</ul>
		
			
	</div>
<a name="methodsetSelectMethod" id="setSelectMethod"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">setSelectMethod</span> (line <span class="line-number">118</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Sets name of the method to generate select query for getAll()</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			setSelectMethod
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$methodName</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$methodName</span>			</li>
				</ul>
		
			
	</div>
<a name="methodupdateEntry" id="updateEntry"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">updateEntry</span> (line <span class="line-number">222</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Updates an entry</p>
	<ul class="tags">
				<li><span class="field">return:</span> - number of affected rows</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">int</span>
		<span class="method-name">
			updateEntry
		</span>
					(<span class="var-type">array</span>&nbsp;<span class="var-name">$request</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">array</span>
				<span class="var-name">$request</span><span class="var-description">: - associative array (key - name of a table field, value - field value)</span>			</li>
				</ul>
		
			
	</div>
<a name="method_prepareRequest" id="_prepareRequest"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">_prepareRequest</span> (line <span class="line-number">279</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Prepares request for entry update</p>
	<ul class="tags">
				<li><span class="field">return:</span> - prepared request</li>
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">array</span>
		<span class="method-name">
			_prepareRequest
		</span>
					(<span class="var-type">array</span>&nbsp;<span class="var-name">$request</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">array</span>
				<span class="var-name">$request</span><span class="var-description">: - associative array (key - name of a table field, value - field value)</span>			</li>
				</ul>
		
			
	</div>
<a name="method_selectQuery" id="_selectQuery"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">_selectQuery</span> (line <span class="line-number">233</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Is used in getAll method. Returns select query. Override this method  in ancestor class to set another query</p>
	<ul class="tags">
				<li><span class="field">return:</span> object</li>
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">Zend_Db_Select</span>
		<span class="method-name">
			_selectQuery
		</span>
				()
			</div>
	
		
			
			<hr class="separator" />
		<div class="notes">Redefined in descendants as:</div>
		<ul class="redefinitions">
					<li>
				<a href="../Usermanagement/Model/Models_Usermanagement_Users.html#method_selectQuery">Models_Usermanagement_Users::_selectQuery()</a>
								: Prepares select query for getAll() method. This query should return users with their group info
							</li>
				</ul>
	</div>
						
		</div>
	</div>


	<p class="notes" id="credit">
		Documentation generated on Mon, 01 Mar 2010 18:58:49 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.0</a>
	</p>
	</div></body>
</html>